package com.leapp.sk.ui.activity.find

import android.os.Bundle
import com.example.mvp.activity.BaseActivityMVP
import com.example.mvp.binder.BaseDataBinder
import com.leapp.sk.R
import com.leapp.sk.bean.BeBedTimeStoryEntity
import com.leapp.sk.binder.BaseBinder
import com.leapp.sk.viewdelegate.find.BeBedTimeStoryDelegate

/**
 * 睡前故事
 * @author  chaohaipeng  on 2018/8/15.
 */
class BeBedTimeStoryActivity:BaseActivityMVP<BeBedTimeStoryDelegate>(){
    override fun initView(p0: Bundle?) {
        viewDelegate.setTitle(resources.getString(R.string.string_bedtime_story))
    }

    override fun initDate() {
        val mutableListOf = mutableListOf<BeBedTimeStoryEntity>()
        for (i in 0..6){
            mutableListOf.add(BeBedTimeStoryEntity())
        }
        viewDelegate.initMAdapter(this,mutableListOf)
        viewDelegate.initLAdapter(this,mutableListOf)

    }

    override fun bindEvenListener() {
    }

    override fun getDelegateClass(): Class<BeBedTimeStoryDelegate> {
        return BeBedTimeStoryDelegate::class.java
    }

    override fun getDataBinder(): BaseDataBinder<*, *> {
        return BaseBinder()
    }
}